Line Class
Description:
A class for creating Line object.
__call
Type: Metamethod.
Description:
Creates and returns a new Line object.
Signature:
metamethod __call: function(
self: LineClass,
verts: {Vec2},
color?: Color --[[0xffffffff]]
): Line
Parameters:
Parameter | Type | Description |
---|---|---|
verts | {Vec2} | Table of vertices to add to the line. |
color | Color | [optional] Color of the line (default is opaque white). |
Returns:
Return Type | Description |
---|---|
Line | Line object. |
__call
Type: Metamethod.
Description:
Creates and returns a new empty Line object.
Signature:
metamethod __call: function(self: LineClass): Line
Returns:
Return Type | Description |
---|---|
Line | Line object. |